package zwo.model.dto;

import zwo.model.Product;

public class ProductDTO extends Product {
    private Integer page;
    private Integer limit;
    private Double minMoney;
    private Double maxMoney;


    public Double getMinMoney() {
        return minMoney;
    }

    public void setMinMoney(Double minMoney) {
        this.minMoney = minMoney;
    }

    public Double getMaxMoney() {
        return maxMoney;
    }

    public void setMaxMoney(Double maxMoney) {
        this.maxMoney = maxMoney;
    }

    public Integer getPage() {
        return (page - 1) * getLimit();
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }
}
